package ooday03;

public class Test {
    public static void main(String[] args) {
        Dog[]dogs=new Dog[3];
        dogs[0]=new Dog("小黑",2,"黑");
        dogs[1]=new Dog("小白",1,"白");
        dogs[2]=new Dog("小灰",3,"灰");
        dogs[0].eat();
        dogs[1].drink();
        dogs[2].lookHome();
        dogs[2].swim();

        Chick[]chicks=new Chick[2];
        chicks[0]=new Chick("小花",2,"花");
        chicks[1]=new Chick("小红",3,"红");
        chicks[0].eat();
        chicks[1].drink();
        chicks[1].layEggs();

        Fish[]fish=new Fish[2];
        fish[0]=new Fish("小黄",1,"黄");
        fish[1]=new Fish("小绿",1,"绿");
        fish[0].eat();
        fish[0].drink();
        fish[1].swim();
    }
}
